//
//  PushBehindArticleViewController.m
//  Movie
//
//  Created by cjy on 16/3/28.
//  Copyright © 2016年 HY. All rights reserved.
//

#import "PushBehindArticleViewController.h"
#import "ModelBehindArticle.h"
@interface PushBehindArticleViewController ()<UIWebViewDelegate>

@end

@implementation PushBehindArticleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}


- (void)passModel:(ModelBehindArticle *)model{

    CGRect frame = self.view.frame;
    self.webView = [[UIWebView alloc ]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame))];
    self.webView.backgroundColor = [UIColor whiteColor];
    self.webView.userInteractionEnabled =YES;
    self.webView.delegate = self;
    self.webView.opaque = NO;
    [self.view addSubview:self.webView];
    NSURL *url = [NSURL URLWithString:model.share_link];
    [self.webView loadRequest:[NSURLRequest requestWithURL:url]];

}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
